import { createStore, applyMiddleware } from 'redux';
import { Middlewares } from 'fee-lib';
import { initalAsyncReducers } from '../components/AsyncComponent/asyncReducers.js';
import combineReducers, { baseReducer } from './reducer.js';

initalAsyncReducers(baseReducer);

const store = createStore(combineReducers, applyMiddleware(Middlewares.thunkMiddleware, Middlewares.promiseMiddleware));

export default store;